/*
 * RecordNotFoundException.h
 *
 *  Created on: Oct 9, 2012
 *      Author: romina
 */

#ifndef RECORDNOTFOUNDEXCEPTION_H_
#define RECORDNOTFOUNDEXCEPTION_H_

#include <string>
#include <exception>

using namespace std;

class RecordNotFoundException: public exception
{
private:
  string mensaje;
public:

  RecordNotFoundException(string message):exception(){
	  this->mensaje = message;
  }

  virtual const char* what() const throw()
  {
	if (this->mensaje.empty())
		return "No se encontro el registro.";
	return this->mensaje.c_str();
  }

  virtual ~RecordNotFoundException() throw(){}
};


#endif /* RECORDNOTFOUNDEXCEPTION_H_ */
